<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/MasterPage.Master" Inherits="System.Web.Mvc.ViewPage<Animoso.Domain.Album>" %>
<%@ Import Namespace="Animoso.Web.Controllers" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Album
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2><%=Model.Name %></h2>
    <% foreach (var picture in Model.Pictures)
{ %>
  <a href="<%=Url.Action("Picture", "Foto", new { id = picture.Id} ) %>"><img src="/Upload/<%=Folders.ALBUM_FOLDER + "/album_" + Model.Id + "/" + picture.Thumb %>" /></a>
<% } %>
    

</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="HeadPlaceHolder" runat="server">
</asp:Content>
